package _36define;

import java.io.FileInputStream ;
import java.io.IOException ;
import java.util.Properties ;
import java.util.Scanner;

public class Demo4 {
    public static void main(String[] args) {
        Properties properties = new Properties();
        try (FileInputStream fis = new FileInputStream("src/.editorconfig ")) {
            properties.load (fis);
        } catch (IOException e) {
            e.printStackTrace ();
        }
        Scanner sc=new Scanner(System.in);
        String a=sc.nextLine();
        String[] arr=a.split(";");

        String username = arr[0];
        String inputPassword = arr[1];

        String storedPassword = properties.getProperty (username);
        if (storedPassword != null && inputPassword.equals (storedPassword)) {
            System.out.println ("输入正确");
        } else {
            System.out.println ("输入错误");
        }
    }
}
